object FrmConfiguracoes: TFrmConfiguracoes
  Left = 0
  Top = 0
  Caption = 'CONFIG TABELA PESQUISA PADR'#195'O'
  ClientHeight = 494
  ClientWidth = 837
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  Position = poScreenCenter
  WindowState = wsMaximized
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object ts: TPageControl
    Left = 0
    Top = 0
    Width = 837
    Height = 494
    ActivePage = tsConfigTabelaPesquisa
    Align = alClient
    TabOrder = 0
    object tsConfigTabelaPesquisa: TTabSheet
      Caption = 'TABELA PESQUISA'
      object Panel1: TPanel
        Left = 0
        Top = 0
        Width = 829
        Height = 89
        Align = alTop
        ParentBackground = False
        TabOrder = 0
        object Label3: TLabel
          Left = 320
          Top = 6
          Width = 63
          Height = 13
          Caption = 'TIPO CAMPO'
        end
        object Label4: TLabel
          Left = 480
          Top = 6
          Width = 89
          Height = 13
          Caption = 'TAMANHO CAMPO'
        end
        object Label5: TLabel
          Left = 8
          Top = 44
          Width = 68
          Height = 13
          Caption = 'LABEL CAMPO'
        end
        object Label6: TLabel
          Left = 135
          Top = 44
          Width = 83
          Height = 13
          Caption = 'APELIDO TABELA'
        end
        object Label7: TLabel
          Left = 262
          Top = 45
          Width = 92
          Height = 13
          Caption = 'EXIBE NO DBGRID?'
        end
        object LABEL8: TLabel
          Left = 419
          Top = 45
          Width = 111
          Height = 13
          Caption = 'EXIBE NO COMBOBOX?'
        end
        object Label9: TLabel
          Left = 570
          Top = 44
          Width = 132
          Height = 13
          Caption = 'LARGURA COLUNA DBGRID'
        end
        object Label1: TLabel
          Left = 8
          Top = 6
          Width = 37
          Height = 13
          Caption = 'TABELA'
        end
        object Label2: TLabel
          Left = 165
          Top = 6
          Width = 36
          Height = 13
          Caption = 'CAMPO'
        end
        object Label13: TLabel
          Left = 608
          Top = 6
          Width = 116
          Height = 13
          Caption = 'USA RELACIONAMENTO'
        end
        object DBLCBTipoCampo: TDBLookupComboBox
          Left = 320
          Top = 19
          Width = 145
          Height = 21
          DataField = 'TIPO_CAMPO_PESQUISA'
          DataSource = dsConfigTabelaPesquisa
          KeyField = 'TIPO'
          ListField = 'TIPO'
          ListSource = dsTempTipoCampo
          TabOrder = 0
        end
        object DBETamanhoCampo: TDBEdit
          Left = 480
          Top = 19
          Width = 121
          Height = 21
          DataField = 'TAMANHO_CAMPO_PESQUISA'
          DataSource = dsConfigTabelaPesquisa
          TabOrder = 1
        end
        object DBELabelCampo: TDBEdit
          Left = 8
          Top = 57
          Width = 121
          Height = 21
          DataField = 'LABEL_CAMPO_PESQUISA'
          DataSource = dsConfigTabelaPesquisa
          TabOrder = 2
        end
        object DBEApelidoTabela: TDBEdit
          Left = 135
          Top = 57
          Width = 121
          Height = 21
          DataField = 'APELIDO_TABELA_PESQUISA'
          DataSource = dsConfigTabelaPesquisa
          TabOrder = 3
          OnEnter = DBEApelidoTabelaEnter
        end
        object DBLCLExibeNoDbGrid: TDBLookupComboBox
          Left = 262
          Top = 58
          Width = 145
          Height = 21
          DataField = 'DBGRID_PESQUISA'
          DataSource = dsConfigTabelaPesquisa
          KeyField = 'COD'
          ListField = 'descricao'
          ListSource = dsSimNao
          TabOrder = 4
        end
        object DBLCBExibeNoComboBox: TDBLookupComboBox
          Left = 419
          Top = 58
          Width = 145
          Height = 21
          DataField = 'COMBOBOX_PESQUISA'
          DataSource = dsConfigTabelaPesquisa
          KeyField = 'COD'
          ListField = 'descricao'
          ListSource = dsSimNao
          TabOrder = 5
        end
        object DBELarguraColunaDBGrid: TDBEdit
          Left = 570
          Top = 57
          Width = 132
          Height = 21
          DataField = 'LARGURA_COLUNA_PESQUISA'
          DataSource = dsConfigTabelaPesquisa
          TabOrder = 6
        end
        object cbTabela: TComboBox
          Left = 8
          Top = 19
          Width = 145
          Height = 21
          Style = csDropDownList
          TabOrder = 7
          OnChange = cbTabelaChange
        end
        object DBLCBCampo: TDBLookupComboBox
          Left = 165
          Top = 19
          Width = 145
          Height = 21
          DataField = 'CAMPO_PESQUISA'
          DataSource = dsConfigTabelaPesquisa
          KeyField = 'nomeCampo'
          ListField = 'nomeCampo'
          ListSource = dsCampos
          TabOrder = 8
        end
        object DBLCBUsaRelacionamento: TDBLookupComboBox
          Left = 608
          Top = 19
          Width = 145
          Height = 21
          DataField = 'USA_RELACIONAMENTO_TABELA'
          DataSource = dsConfigTabelaPesquisa
          KeyField = 'COD'
          ListField = 'descricao'
          ListSource = dsSimNao
          TabOrder = 9
        end
      end
      object Panel2: TPanel
        Left = 0
        Top = 193
        Width = 829
        Height = 233
        Align = alClient
        TabOrder = 2
        object DBGrid1: TDBGrid
          Left = 1
          Top = 1
          Width = 827
          Height = 231
          Align = alClient
          DataSource = dsConfigTabelaPesquisa
          ReadOnly = True
          TabOrder = 0
          TitleFont.Charset = DEFAULT_CHARSET
          TitleFont.Color = clWindowText
          TitleFont.Height = -11
          TitleFont.Name = 'Tahoma'
          TitleFont.Style = []
          OnEnter = DBGrid1Enter
        end
      end
      object PNLBotoes: TPanel
        Left = 0
        Top = 426
        Width = 829
        Height = 40
        Align = alBottom
        TabOrder = 1
        object BtnInserir: TButton
          Left = 16
          Top = 6
          Width = 75
          Height = 25
          Caption = 'Inserir'
          TabOrder = 0
          OnClick = BtnInserirClick
        end
        object BtnSalvar: TButton
          Left = 97
          Top = 6
          Width = 75
          Height = 25
          Caption = 'Salvar'
          TabOrder = 1
          OnClick = BtnSalvarClick
        end
        object BtnCancelar: TButton
          Left = 180
          Top = 6
          Width = 75
          Height = 25
          Caption = 'Cancelar'
          TabOrder = 2
          OnClick = BtnCancelarClick
        end
        object BtnExcluir: TButton
          Left = 262
          Top = 6
          Width = 75
          Height = 25
          Caption = 'Excluir'
          TabOrder = 3
          OnClick = BtnExcluirClick
        end
        object BtnSubirPosicao: TButton
          Left = 346
          Top = 6
          Width = 75
          Height = 25
          Caption = 'Subir Posi'#231#227'o'
          TabOrder = 4
          OnClick = BtnSubirPosicaoClick
        end
        object BtnDescerPosicao: TButton
          Left = 427
          Top = 6
          Width = 86
          Height = 25
          Caption = 'Descer Posi'#231#227'o'
          TabOrder = 5
          OnClick = BtnDescerPosicaoClick
        end
        object BtnGerarNumeracao: TButton
          Left = 519
          Top = 6
          Width = 90
          Height = 25
          Caption = 'Gerar Numera'#231#227'o'
          TabOrder = 6
          OnClick = BtnGerarNumeracaoClick
        end
      end
      object PNLRelacionamento: TPanel
        Left = 0
        Top = 89
        Width = 829
        Height = 104
        Align = alTop
        TabOrder = 3
        Visible = False
        object GroupBox1: TGroupBox
          Left = 1
          Top = 1
          Width = 827
          Height = 102
          Align = alClient
          Caption = 'RELACIONAMENTO'
          TabOrder = 0
          object Label10: TLabel
            Left = 7
            Top = 13
            Width = 43
            Height = 13
            Caption = 'TABELA2'
          end
          object Label11: TLabel
            Left = 164
            Top = 13
            Width = 89
            Height = 13
            Caption = 'APELIDO TABELA2'
          end
          object Label12: TLabel
            Left = 308
            Top = 13
            Width = 42
            Height = 13
            Caption = 'CAMPO2'
          end
          object Label14: TLabel
            Left = 463
            Top = 13
            Width = 120
            Height = 13
            Caption = 'TIPO RELACIONAMENTO'
          end
          object Label15: TLabel
            Left = 164
            Top = 52
            Width = 121
            Height = 13
            Caption = 'CAMPO CHAVE TABELA 2'
          end
          object Label16: TLabel
            Left = 7
            Top = 52
            Width = 121
            Height = 13
            Caption = 'CAMPO CHAVE TABELA 1'
          end
          object DBLCBTabela2: TDBLookupComboBox
            Left = 7
            Top = 25
            Width = 145
            Height = 21
            DataField = 'TABELA2_PESQUISA'
            DataSource = dsConfigTabelaPesquisa
            KeyField = 'tabela'
            ListField = 'tabela'
            ListSource = dsTabelas
            TabOrder = 0
            OnExit = DBLCBTabela2Exit
          end
          object DBEApelidoTabela2: TDBEdit
            Left = 164
            Top = 25
            Width = 132
            Height = 21
            DataField = 'APELIDO_TABELA2_PESQUISA'
            DataSource = dsConfigTabelaPesquisa
            TabOrder = 1
          end
          object DBLCBCampo2: TDBLookupComboBox
            Left = 308
            Top = 25
            Width = 145
            Height = 21
            DataField = 'CAMPO2_PESQUISA'
            DataSource = dsConfigTabelaPesquisa
            KeyField = 'nomeCampo'
            ListField = 'nomeCampo'
            ListSource = dsCampos2
            TabOrder = 2
          end
          object DBLCBTipoRelacionamento: TDBLookupComboBox
            Left = 463
            Top = 25
            Width = 145
            Height = 21
            DataField = 'TIPO_REL_PESQUISA'
            DataSource = dsConfigTabelaPesquisa
            KeyField = 'tiporRel'
            ListField = 'tiporRel'
            ListSource = dsTipoRel
            TabOrder = 3
          end
          object DBLCBCampoChaveTabela1: TDBLookupComboBox
            Left = 7
            Top = 64
            Width = 145
            Height = 21
            DataField = 'CAMPOCHAVE_TABELA1_PESQUISA'
            DataSource = dsConfigTabelaPesquisa
            KeyField = 'nomeCampo'
            ListField = 'nomeCampo'
            ListSource = dsCampos
            TabOrder = 4
          end
          object DBLCBCampoChaveTabela2: TDBLookupComboBox
            Left = 164
            Top = 64
            Width = 145
            Height = 21
            DataField = 'CAMPOCHAVE_TABELA2_PESQUISA'
            DataSource = dsConfigTabelaPesquisa
            KeyField = 'nomeCampo'
            ListField = 'nomeCampo'
            ListSource = dsCampos2
            TabOrder = 5
          end
        end
      end
    end
  end
  object dsConfigTabelaPesquisa: TDataSource
    DataSet = cdsConfigTabelaPesquisa
    OnDataChange = dsConfigTabelaPesquisaDataChange
    Left = 384
    Top = 256
  end
  object sdsConfigTabelaPesquisa: TSQLDataSet
    SchemaName = 'sysdba'
    CommandText = 'select * from campo_pesquisa'
    DbxCommandType = 'Dbx.SQL'
    MaxBlobSize = -1
    Params = <>
    SQLConnection = DM1.CONEXAO
    Left = 208
    Top = 264
    object sdsConfigTabelaPesquisaTABELA_PESQUISA: TStringField
      FieldName = 'TABELA_PESQUISA'
      Required = True
      Size = 50
    end
    object sdsConfigTabelaPesquisaCAMPO_PESQUISA: TStringField
      FieldName = 'CAMPO_PESQUISA'
      Required = True
      Size = 50
    end
    object sdsConfigTabelaPesquisaTIPO_CAMPO_PESQUISA: TStringField
      FieldName = 'TIPO_CAMPO_PESQUISA'
      Size = 50
    end
    object sdsConfigTabelaPesquisaTAMANHO_CAMPO_PESQUISA: TIntegerField
      FieldName = 'TAMANHO_CAMPO_PESQUISA'
    end
    object sdsConfigTabelaPesquisaLABEL_CAMPO_PESQUISA: TStringField
      FieldName = 'LABEL_CAMPO_PESQUISA'
      Required = True
      Size = 50
    end
    object sdsConfigTabelaPesquisaAPELIDO_TABELA_PESQUISA: TStringField
      FieldName = 'APELIDO_TABELA_PESQUISA'
      Required = True
      Size = 5
    end
    object sdsConfigTabelaPesquisaDBGRID_PESQUISA: TStringField
      FieldName = 'DBGRID_PESQUISA'
      FixedChar = True
      Size = 1
    end
    object sdsConfigTabelaPesquisaCOMBOBOX_PESQUISA: TStringField
      FieldName = 'COMBOBOX_PESQUISA'
      FixedChar = True
      Size = 1
    end
    object sdsConfigTabelaPesquisaLARGURA_COLUNA_PESQUISA: TIntegerField
      FieldName = 'LARGURA_COLUNA_PESQUISA'
    end
    object sdsConfigTabelaPesquisaORDEM_CAMPO_PESQUISA: TIntegerField
      FieldName = 'ORDEM_CAMPO_PESQUISA'
    end
    object sdsConfigTabelaPesquisaTIPO_REL_PESQUISA: TStringField
      FieldName = 'TIPO_REL_PESQUISA'
    end
    object sdsConfigTabelaPesquisaTABELA2_PESQUISA: TStringField
      FieldName = 'TABELA2_PESQUISA'
      Size = 50
    end
    object sdsConfigTabelaPesquisaCAMPO2_PESQUISA: TStringField
      FieldName = 'CAMPO2_PESQUISA'
      Size = 50
    end
    object sdsConfigTabelaPesquisaAPELIDO_TABELA2_PESQUISA: TStringField
      FieldName = 'APELIDO_TABELA2_PESQUISA'
      Size = 50
    end
    object sdsConfigTabelaPesquisaCAMPOCHAVE_TABELA1_PESQUISA: TStringField
      FieldName = 'CAMPOCHAVE_TABELA1_PESQUISA'
      Size = 50
    end
    object sdsConfigTabelaPesquisaCAMPOCHAVE_TABELA2_PESQUISA: TStringField
      FieldName = 'CAMPOCHAVE_TABELA2_PESQUISA'
      Size = 50
    end
    object sdsConfigTabelaPesquisaUSA_RELACIONAMENTO_TABELA: TStringField
      FieldName = 'USA_RELACIONAMENTO_TABELA'
      FixedChar = True
      Size = 1
    end
  end
  object dspConfigTabelaPesquisa: TDataSetProvider
    DataSet = sdsConfigTabelaPesquisa
    Left = 208
    Top = 320
  end
  object cdsConfigTabelaPesquisa: TClientDataSet
    Aggregates = <>
    IndexFieldNames = 'ORDEM_CAMPO_PESQUISA'
    Params = <>
    ProviderName = 'dspConfigTabelaPesquisa'
    AfterPost = cdsConfigTabelaPesquisaAfterPost
    AfterDelete = cdsConfigTabelaPesquisaAfterDelete
    Left = 208
    Top = 376
    object cdsConfigTabelaPesquisaORDEM_CAMPO_PESQUISA: TIntegerField
      FieldName = 'ORDEM_CAMPO_PESQUISA'
    end
    object cdsConfigTabelaPesquisaTABELA_PESQUISA: TStringField
      FieldName = 'TABELA_PESQUISA'
      Required = True
      Size = 50
    end
    object cdsConfigTabelaPesquisaCAMPO_PESQUISA: TStringField
      FieldName = 'CAMPO_PESQUISA'
      Required = True
      Size = 50
    end
    object cdsConfigTabelaPesquisaTIPO_CAMPO_PESQUISA: TStringField
      FieldName = 'TIPO_CAMPO_PESQUISA'
      Size = 50
    end
    object cdsConfigTabelaPesquisaTAMANHO_CAMPO_PESQUISA: TIntegerField
      FieldName = 'TAMANHO_CAMPO_PESQUISA'
    end
    object cdsConfigTabelaPesquisaLABEL_CAMPO_PESQUISA: TStringField
      FieldName = 'LABEL_CAMPO_PESQUISA'
      Required = True
      Size = 50
    end
    object cdsConfigTabelaPesquisaAPELIDO_TABELA_PESQUISA: TStringField
      FieldName = 'APELIDO_TABELA_PESQUISA'
      Required = True
      Size = 5
    end
    object cdsConfigTabelaPesquisaDBGRID_PESQUISA: TStringField
      FieldName = 'DBGRID_PESQUISA'
      FixedChar = True
      Size = 1
    end
    object cdsConfigTabelaPesquisaCOMBOBOX_PESQUISA: TStringField
      FieldName = 'COMBOBOX_PESQUISA'
      FixedChar = True
      Size = 1
    end
    object cdsConfigTabelaPesquisaLARGURA_COLUNA_PESQUISA: TIntegerField
      FieldName = 'LARGURA_COLUNA_PESQUISA'
    end
    object cdsConfigTabelaPesquisaTIPO_REL_PESQUISA: TStringField
      FieldName = 'TIPO_REL_PESQUISA'
    end
    object cdsConfigTabelaPesquisaTABELA2_PESQUISA: TStringField
      FieldName = 'TABELA2_PESQUISA'
      Size = 50
    end
    object cdsConfigTabelaPesquisaCAMPO2_PESQUISA: TStringField
      FieldName = 'CAMPO2_PESQUISA'
      Size = 50
    end
    object cdsConfigTabelaPesquisaAPELIDO_TABELA2_PESQUISA: TStringField
      FieldName = 'APELIDO_TABELA2_PESQUISA'
      Size = 50
    end
    object cdsConfigTabelaPesquisaCAMPOCHAVE_TABELA1_PESQUISA: TStringField
      FieldName = 'CAMPOCHAVE_TABELA1_PESQUISA'
      Size = 50
    end
    object cdsConfigTabelaPesquisaCAMPOCHAVE_TABELA2_PESQUISA: TStringField
      FieldName = 'CAMPOCHAVE_TABELA2_PESQUISA'
      Size = 50
    end
    object cdsConfigTabelaPesquisaUSA_RELACIONAMENTO_TABELA: TStringField
      FieldName = 'USA_RELACIONAMENTO_TABELA'
      FixedChar = True
      Size = 1
    end
  end
  object cdsTempTipoCampo: TClientDataSet
    Active = True
    Aggregates = <>
    Params = <>
    Left = 624
    Top = 312
    Data = {
      510000009619E0BD010000001800000002000000000003000000510004544950
      4F01004900000001000557494454480200020032000944455343524943414F01
      004900000001000557494454480200020032000000}
    object cdsTempTipoCampoTIPO: TStringField
      FieldName = 'TIPO'
      Size = 50
    end
    object cdsTempTipoCampoDESCRICAO: TStringField
      FieldName = 'DESCRICAO'
      Size = 50
    end
  end
  object dsTempTipoCampo: TDataSource
    DataSet = cdsTempTipoCampo
    Left = 536
    Top = 232
  end
  object dsSimNao: TDataSource
    DataSet = DM1.cdsTrueFalse
    Left = 648
    Top = 240
  end
  object cdsCampos: TClientDataSet
    Active = True
    Aggregates = <>
    Params = <>
    Left = 32
    Top = 328
    Data = {
      380000009619E0BD0100000018000000010000000000030000003800096E6F6D
      6543616D706F01004900000001000557494454480200020032000000}
    object cdsCamposnomeCampo: TStringField
      FieldName = 'nomeCampo'
      Size = 50
    end
  end
  object dsCampos: TDataSource
    DataSet = cdsCampos
    Left = 96
    Top = 328
  end
  object cdsTabelas: TClientDataSet
    Active = True
    Aggregates = <>
    Params = <>
    Left = 32
    Top = 264
    Data = {
      350000009619E0BD010000001800000001000000000003000000350006746162
      656C6101004900000001000557494454480200020032000000}
    object cdsTabelastabela: TStringField
      FieldName = 'tabela'
      Size = 50
    end
  end
  object cdsCampos2: TClientDataSet
    Active = True
    Aggregates = <>
    Params = <>
    Left = 32
    Top = 384
    Data = {
      380000009619E0BD0100000018000000010000000000030000003800096E6F6D
      6543616D706F01004900000001000557494454480200020032000000}
    object cdsCampos2nomeCampo: TStringField
      FieldName = 'nomeCampo'
      Size = 50
    end
  end
  object dsTabelas: TDataSource
    DataSet = cdsTabelas
    Left = 96
    Top = 264
  end
  object dsCampos2: TDataSource
    DataSet = cdsCampos2
    Left = 96
    Top = 384
  end
  object cdsTipoRel: TClientDataSet
    Active = True
    Aggregates = <>
    Params = <>
    Left = 384
    Top = 328
    Data = {
      370000009619E0BD010000001800000001000000000003000000370008746970
      6F7252656C01004900000001000557494454480200020014000000}
    object cdsTipoReltiporRel: TStringField
      FieldName = 'tiporRel'
    end
  end
  object dsTipoRel: TDataSource
    DataSet = cdsTipoRel
    Left = 472
    Top = 328
  end
end
